package com.cgbl.cg.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.cgbl.cg.R

class JobAdapter : BaseQuickAdapter<String, BaseViewHolder>(R.layout.app_item_job) {

//    // 自定义ViewHolder类
//    class VH(
//        parent: ViewGroup,
//        val binding: AppItemJobBinding = AppItemJobBinding.inflate(
//            LayoutInflater.from(parent.context), parent, false
//        ),
//    ) : RecyclerView.ViewHolder(binding.root)
//
//    override fun onBindViewHolder(holder: VH, position: Int, item: String?) {
//
//    }
//
//    override fun onCreateViewHolder(context: Context, parent: ViewGroup, viewType: Int): VH {
//        return VH(parent)
//    }

    override fun convert(holder: BaseViewHolder, item: String) {
        holder.setText(R.id.tv_job_name,item)
    }
}